package com.ruoyi.nycbfx.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.nycbfx.mapper.TbNycbfxNydjwhMapper;
import com.ruoyi.nycbfx.domain.TbNycbfxNydjwh;
import com.ruoyi.nycbfx.service.ITbNycbfxNydjwhService;

/**
 * 能源单价维护Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-12
 */
@Service
public class TbNycbfxNydjwhServiceImpl implements ITbNycbfxNydjwhService 
{
    @Autowired
    private TbNycbfxNydjwhMapper tbNycbfxNydjwhMapper;

    /**
     * 查询能源单价维护
     * 
     * @param id 能源单价维护主键
     * @return 能源单价维护
     */
    @Override
    public TbNycbfxNydjwh selectTbNycbfxNydjwhById(Long id)
    {
        return tbNycbfxNydjwhMapper.selectTbNycbfxNydjwhById(id);
    }

    /**
     * 查询能源单价维护列表
     * 
     * @param tbNycbfxNydjwh 能源单价维护
     * @return 能源单价维护
     */
    @Override
    public List<TbNycbfxNydjwh> selectTbNycbfxNydjwhList(TbNycbfxNydjwh tbNycbfxNydjwh)
    {
        return tbNycbfxNydjwhMapper.selectTbNycbfxNydjwhList(tbNycbfxNydjwh);
    }

    /**
     * 新增能源单价维护
     * 
     * @param tbNycbfxNydjwh 能源单价维护
     * @return 结果
     */
    @Override
    public int insertTbNycbfxNydjwh(TbNycbfxNydjwh tbNycbfxNydjwh)
    {
        return tbNycbfxNydjwhMapper.insertTbNycbfxNydjwh(tbNycbfxNydjwh);
    }

    /**
     * 修改能源单价维护
     * 
     * @param tbNycbfxNydjwh 能源单价维护
     * @return 结果
     */
    @Override
    public int updateTbNycbfxNydjwh(TbNycbfxNydjwh tbNycbfxNydjwh)
    {
        return tbNycbfxNydjwhMapper.updateTbNycbfxNydjwh(tbNycbfxNydjwh);
    }

    /**
     * 批量删除能源单价维护
     * 
     * @param ids 需要删除的能源单价维护主键
     * @return 结果
     */
    @Override
    public int deleteTbNycbfxNydjwhByIds(Long[] ids)
    {
        return tbNycbfxNydjwhMapper.deleteTbNycbfxNydjwhByIds(ids);
    }

    /**
     * 删除能源单价维护信息
     * 
     * @param id 能源单价维护主键
     * @return 结果
     */
    @Override
    public int deleteTbNycbfxNydjwhById(Long id)
    {
        return tbNycbfxNydjwhMapper.deleteTbNycbfxNydjwhById(id);
    }
}
